import 'dart:core';

class EmployeeModel {
  int id;
  String employeeId;
  String avatar;
  String phone;
  String name;
  String position;
  String departmentId;
  String departmentName;

  static EmployeeModel formMap(Map<String, dynamic> map) {
    EmployeeModel employee = EmployeeModel();
    employee.id = map['id'];
    employee.employeeId = map['employeeId'];
    employee.avatar = map['avatar'];
    employee.phone = map['phone'];
    employee.position = map['position'];
    employee.name = map['name'];
    employee.departmentId = map['departmentId'];
    employee.departmentName = map['departmentName'];
    return employee;
  }
}
